<template>
    <div class="attendance-rules">
        <router-link to="/main/renshi/kaoqing" class="back-link">返回</router-link>
        <div class="header">
            <h2 class="rules-header">考勤规则</h2>
        </div>
        <div class="rules-content">
            <h3>上下班打卡时间</h3>
            <ul>
                <li>上午上班：8:30 - 9:00</li>
                <li>午休打卡：11:35 - 13:30</li>
                <li>下午下班：18:00 - 18:30</li>
                <li>加班打卡：19:00 - 20:30</li>
            </ul>

            <h3>考勤规定</h3>
            <ul>
                <li>每天必须完成规定时间的打卡，否则按缺勤处理</li>
                <li>迟到15分钟以上需要提交说明</li>
                <li>请假需要提前申请</li>
                <li>特殊情况需要提前请假</li>
            </ul>

            <h3>其他说明</h3>
            <p>如遇系统问题或特殊情况，请及时联系人事部门处理。</p>
        </div>
    </div>
</template>

<style scoped>
.attendance-rules {
    font-family: '宋体', sans-serif;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    height: calc(100vh - 40px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.back-link {
    position: absolute;
    top: 10px;
    left: 10px;
    text-decoration: none;
    color: #409EFF;
    font-size: 1em;
    margin-right: 20px;
    transition: all 0.3s;
}

.header {
    text-align: center;
}

.rules-header {
    color: #333;
    font-size: 24px;
}

.rules-content h3 {
    color: #555;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.rules-content ul {
    list-style-type: none;
    padding: 0;
}

.rules-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.rules-content p {
    color: #666;
    line-height: 1.5;
}
</style>